package com.example.itcacp;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.socket.config.annotation.EnableWebSocket;


/**
 * 程序启动类
 * */

@SpringBootApplication   //用于全局启动类：相当于@Configuration，@EnableAutoConfiguration、@ComponentScan的整合
@MapperScan("com.example.itcacp.repository.mybatis")  // 指定 Mapper 接口所在的包、配置mapper接口的扫描路径
@EnableWebSocket
public class ItcacpApplication {
    public static void main(String[] args) {
        SpringApplication.run ( ItcacpApplication.class, args );
    }
}
